package com.itheima;

import com.itheima.pojo.ActiveUser;
import com.itheima.service.UserService;
import org.apache.shiro.crypto.hash.Md5Hash;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

@SpringBootTest
public class SpringBootApplication {
    @Autowired
    private UserService userService;

    @Test
    public void test1() {
        ActiveUser zhangsan = userService.queryUserByName("zhangsan");
        System.out.println(zhangsan);
    }
    @Test
    public void test2(){
        Md5Hash md5Hash = new Md5Hash("111111","成都",2);
        System.out.println(md5Hash);
    }
}
